import {
  defineStore
} from 'pinia'
import {
  ref
} from 'vue'

export const useTimePay = defineStore('timePay', () => {

  const time = ref(null)

  const setTime = (t) => {
    time.value = t
    console.log(t);
  }


  return {
    time, setTime
  }
},
  {

    // 打开持久化，默认进行 localStorage 储存
    persist: true
  },
)